//
//  ChartViewController.m
//  hospitalVIP
//
//  Created by Xiaoyan on 13-5-12.
//  Copyright (c) 2013年 MEETStudio. All rights reserved.
//

#import "ChartViewController.h"
#import "CurveViewController.h"
#import "NewCurveViewController.h"
#import "ChartHeartViewController.h"
@interface ChartViewController ()

@end

@implementation ChartViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    NSString *path = [[NSBundle mainBundle] pathForResource:@"bg_pattern_wood" ofType:@"png"];
    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageWithContentsOfFile:path]];

    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)chart_weight:(id)sender{
    
    //CurveViewController *viewCon = [[CurveViewController alloc]initWithDataType:1];
    //[self.navigationController pushViewController:viewCon animated:YES];
    //[viewCon release];
    NewCurveViewController *viewCon= [[NewCurveViewController alloc] initWithDataType:1];
    [self.navigationController pushViewController:viewCon animated:YES];
    [viewCon release];
       
}
- (IBAction)chart_bloodPressure:(id)sender{
    
    NewCurveViewController *viewCon = [[NewCurveViewController alloc]initWithDataType:5];
    [self.navigationController pushViewController:viewCon animated:YES];
    [viewCon release];
}
- (IBAction)chart_SystolicBloodPressure:(id)sender{
    NewCurveViewController *viewCon = [[NewCurveViewController alloc]initWithDataType:3];
    [self.navigationController pushViewController:viewCon animated:YES];
    [viewCon release];
    
}
- (IBAction)chart_DiastolicBloodPressure:(id)sender{
    
    NewCurveViewController *viewCon = [[NewCurveViewController alloc]initWithDataType:4];
    [self.navigationController pushViewController:viewCon animated:YES];
    [viewCon release];
}
- (IBAction)chart_URI:(id)sender{
    NewCurveViewController *viewCon = [[NewCurveViewController alloc]initWithDataType:2];
    [self.navigationController pushViewController:viewCon animated:YES];
    [viewCon release];
}

- (IBAction)chart_heart:(id)sender{
    
    ChartHeartViewController *viewCon = [[ChartHeartViewController alloc] init];
    [self.navigationController pushViewController:viewCon animated:YES];
    [viewCon release];

    
}


@end
